#include "main.h"

using namespace std;

void Log(std::string ausgabe, int level) {
    
    if(level <= MAX_LOGLEVEL)
    {
        fstream file;
        file.open(LOGFILE);
        file << ausgabe << endl;
        file.close();
    }
}

void Console(string ausgabe, int level) {
     
     if(level <= MAX_CONSOLELEVEL)
     {
         fstream file;
         file.open(CONSOLEFILE);  
         file << ausgabe << endl;
         cout << ausgabe << endl;
         file.close();      
     }
}
